home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / omniORB-2.5.0-src.tar.gz / omniORB-2.5.0-src.tar / omniORB_2.5.0 / include / omniORB2 / Naming.hh < prev    next >
Text File  |  1998-03-09  |  34KB  |  985 lines

  1. #ifndef __Naming_hh__
  2. #define __Naming_hh__
  3.  
  4. #include <omniORB2/CORBA.h>
  5.  
  6. _CORBA_MODULE CosNaming {
  7. _CORBA_MODULE_PUBLIC
  8.  
  9.   static const CORBA::TypeCode_ptr _tc_Istring;
  10.   typedef char* Istring;
  11.   typedef CORBA::String_var Istring_var;
  12.   struct NameComponent {
  13.     CORBA::String_member id;
  14.     CORBA::String_member kind;
  15.     
  16.     size_t NP_alignedSize(size_t initialoffset) const;
  17.     void operator>>= (NetBufferedStream &) const;
  18.     void operator<<= (NetBufferedStream &);
  19.     void operator>>= (MemBufferedStream &) const;
  20.     void operator<<= (MemBufferedStream &);
  21.   };
  22.  
  23.   typedef _CORBA_ConstrType_Variable_Var<NameComponent> NameComponent_var;
  24.  
  25.   static const CORBA::TypeCode_ptr _tc_NameComponent;
  26.  
  27.   friend inline void operator<<=(CORBA::Any& _a, const NameComponent& _s) {
  28.     MemBufferedStream _0RL_mbuf;
  29.     _tc_NameComponent->NP_fillInit(_0RL_mbuf);
  30.     _s >>= _0RL_mbuf;
  31.     _a.NP_replaceData(_tc_NameComponent,_0RL_mbuf);
  32.   }
  33.  
  34.   friend inline void operator<<=(CORBA::Any& _a, NameComponent* _sp) {
  35.     ::operator<<=(_a,*_sp);
  36.     delete _sp;
  37.   }
  38.  
  39.   friend CORBA::Boolean operator>>=(const CORBA::Any& _a, NameComponent*& _sp);
  40.  
  41.   static const CORBA::TypeCode_ptr _tc_Name;
  42.   typedef _CORBA_Unbounded_Sequence<NameComponent > Name;
  43.   typedef _CORBA_Sequence_Var<Name, NameComponent > Name_var;
  44.  
  45. #ifndef __04RL__IDL_SEQUENCE_CosNaming_NameComponent__
  46. #define __04RL__IDL_SEQUENCE_CosNaming_NameComponent__
  47.  
  48.   friend inline void operator<<=(CORBA::Any& _a, const Name& _s) {
  49.     MemBufferedStream _0RL_mbuf;
  50.     _tc_Name->NP_fillInit(_0RL_mbuf);
  51.     _s >>= _0RL_mbuf;
  52.     _a.NP_replaceData(_tc_Name,_0RL_mbuf);
  53.   }
  54.  
  55.   friend inline void operator<<=(CORBA::Any& _a, Name* _sp) {
  56.     ::operator<<=(_a,*_sp);
  57.     delete _sp;
  58.   }
  59.  
  60.   friend inline void _03RL_CosNaming_Name_delete(void* _data) {
  61.     Name* _0RL_t = (Name*) _data;
  62.     delete _0RL_t;
  63.   }
  64.  
  65.   friend inline CORBA::Boolean operator>>=(const CORBA::Any& _a, Name*& _sp) {
  66.     CORBA::TypeCode_var _0RL_any_tc = _a.type();
  67.     if (!_0RL_any_tc->NP_expandEqual(_tc_Name,1)) {
  68.       _sp = 0;
  69.       return 0;
  70.     }
  71.     else {
  72.       void* _0RL_data = _a.NP_data();
  73.  
  74.       if (!_0RL_data) {
  75.         MemBufferedStream _0RL_tmp_mbuf;
  76.         _a.NP_getBuffer(_0RL_tmp_mbuf);
  77.         Name* _0RL_tmp = new Name;
  78.         *_0RL_tmp <<= _0RL_tmp_mbuf;
  79.         _0RL_data = (void*) _0RL_tmp;
  80.         _a.NP_holdData(_0RL_data,_03RL_CosNaming_Name_delete);
  81.       }
  82.  
  83.       _sp = (Name*) _0RL_data;
  84.       return 1;
  85.     }
  86.   }
  87.  
  88. #endif
  89.  
  90.   enum BindingType { nobject, ncontext };
  91.  
  92.   friend inline void operator>>= (BindingType _e,NetBufferedStream &s) {
  93.     ::operator>>=((CORBA::ULong)_e,s);
  94.   }
  95.  
  96.   friend inline void operator<<= (BindingType &_e,NetBufferedStream &s) {
  97.     CORBA::ULong __e;
  98.     __e <<= s;
  99.     switch (__e) {
  100.       case nobject:
  101.       case ncontext:
  102.         _e = (BindingType) __e;
  103.         break;
  104.       default:
  105.         _CORBA_marshal_error();
  106.     }
  107.   }
  108.  
  109.   friend inline void operator>>= (BindingType _e,MemBufferedStream &s) {
  110.     ::operator>>=((CORBA::ULong)_e,s);
  111.   }
  112.  
  113.   friend inline void operator<<= (BindingType &_e,MemBufferedStream &s) {
  114.     CORBA::ULong __e;
  115.     __e <<= s;
  116.     switch (__e) {
  117.       case nobject:
  118.       case ncontext:
  119.         _e = (BindingType) __e;
  120.         break;
  121.       default:
  122.         _CORBA_marshal_error();
  123.     }
  124.   }
  125.  
  126.   static const CORBA::TypeCode_ptr _tc_BindingType;
  127.  
  128.   friend inline void operator<<=(CORBA::Any& _a, BindingType _s) {
  129.     MemBufferedStream _0RL_mbuf;
  130.     _tc_BindingType->NP_fillInit(_0RL_mbuf);
  131.     _s >>= _0RL_mbuf;
  132.     _a.NP_replaceData(_tc_BindingType,_0RL_mbuf);
  133.   }
  134.  
  135.   friend CORBA::Boolean operator>>=(const CORBA::Any& _a, BindingType& _s);
  136.  
  137.   struct Binding {
  138.     Name binding_name;
  139.     BindingType binding_type;
  140.     
  141.     size_t NP_alignedSize(size_t initialoffset) const;
  142.     void operator>>= (NetBufferedStream &) const;
  143.     void operator<<= (NetBufferedStream &);
  144.     void operator>>= (MemBufferedStream &) const;
  145.     void operator<<= (MemBufferedStream &);
  146.   };
  147.  
  148.   typedef _CORBA_ConstrType_Variable_Var<Binding> Binding_var;
  149.  
  150.   static const CORBA::TypeCode_ptr _tc_Binding;
  151.  
  152.   friend inline void operator<<=(CORBA::Any& _a, const Binding& _s) {
  153.     MemBufferedStream _0RL_mbuf;
  154.     _tc_Binding->NP_fillInit(_0RL_mbuf);
  155.     _s >>= _0RL_mbuf;
  156.     _a.NP_replaceData(_tc_Binding,_0RL_mbuf);
  157.   }
  158.  
  159.   friend inline void operator<<=(CORBA::Any& _a, Binding* _sp) {
  160.     ::operator<<=(_a,*_sp);
  161.     delete _sp;
  162.   }
  163.  
  164.   friend CORBA::Boolean operator>>=(const CORBA::Any& _a, Binding*& _sp);
  165.  
  166.   static const CORBA::TypeCode_ptr _tc_BindingList;
  167.   typedef _CORBA_Unbounded_Sequence<Binding > BindingList;
  168.   typedef _CORBA_Sequence_Var<BindingList, Binding > BindingList_var;
  169.  
  170. #ifndef __04RL__IDL_SEQUENCE_CosNaming_Binding__
  171. #define __04RL__IDL_SEQUENCE_CosNaming_Binding__
  172.  
  173.   friend inline void operator<<=(CORBA::Any& _a, const BindingList& _s) {
  174.     MemBufferedStream _0RL_mbuf;
  175.     _tc_BindingList->NP_fillInit(_0RL_mbuf);
  176.     _s >>= _0RL_mbuf;
  177.     _a.NP_replaceData(_tc_BindingList,_0RL_mbuf);
  178.   }
  179.  
  180.   friend inline void operator<<=(CORBA::Any& _a, BindingList* _sp) {
  181.     ::operator<<=(_a,*_sp);
  182.     delete _sp;
  183.   }
  184.  
  185.   friend inline void _03RL_CosNaming_BindingList_delete(void* _data) {
  186.     BindingList* _0RL_t = (BindingList*) _data;
  187.     delete _0RL_t;
  188.   }
  189.  
  190.   friend inline CORBA::Boolean operator>>=(const CORBA::Any& _a, BindingList*& _sp) {
  191.     CORBA::TypeCode_var _0RL_any_tc = _a.type();
  192.     if (!_0RL_any_tc->NP_expandEqual(_tc_BindingList,1)) {
  193.       _sp = 0;
  194.       return 0;
  195.     }
  196.     else {
  197.       void* _0RL_data = _a.NP_data();
  198.  
  199.       if (!_0RL_data) {
  200.         MemBufferedStream _0RL_tmp_mbuf;
  201.         _a.NP_getBuffer(_0RL_tmp_mbuf);
  202.         BindingList* _0RL_tmp = new BindingList;
  203.         *_0RL_tmp <<= _0RL_tmp_mbuf;
  204.         _0RL_data = (void*) _0RL_tmp;
  205.         _a.NP_holdData(_0RL_data,_03RL_CosNaming_BindingList_delete);
  206.       }
  207.  
  208.       _sp = (BindingList*) _0RL_data;
  209.       return 1;
  210.     }
  211.   }
  212.  
  213. #endif
  214.  
  215. #ifndef __CosNaming_BindingIterator__
  216. #define __CosNaming_BindingIterator__
  217.   class   BindingIterator;
  218.   typedef BindingIterator* BindingIterator_ptr;
  219.   typedef BindingIterator_ptr BindingIteratorRef;
  220.   class _proxy_BindingIterator;
  221.   class _sk_BindingIterator;
  222.   class _nil_BindingIterator;
  223.  
  224.   class BindingIterator_Helper {
  225.     public:
  226.     static BindingIterator_ptr _nil();
  227.     static CORBA::Boolean is_nil(BindingIterator_ptr p);
  228.     static void release(BindingIterator_ptr p);
  229.     static void duplicate(BindingIterator_ptr p);
  230.     static size_t NP_alignedSize(BindingIterator_ptr obj,size_t initialoffset);
  231.     static void marshalObjRef(BindingIterator_ptr obj,NetBufferedStream &s);
  232.     static BindingIterator_ptr unmarshalObjRef(NetBufferedStream &s);
  233.     static void marshalObjRef(BindingIterator_ptr obj,MemBufferedStream &s);
  234.     static BindingIterator_ptr unmarshalObjRef(MemBufferedStream &s);
  235.   };
  236.   typedef _CORBA_ObjRef_Var<BindingIterator,BindingIterator_Helper> BindingIterator_var;
  237.  
  238. #endif
  239. #ifndef __CosNaming_NamingContext__
  240. #define __CosNaming_NamingContext__
  241.   class   NamingContext;
  242.   typedef NamingContext* NamingContext_ptr;
  243.   typedef NamingContext_ptr NamingContextRef;
  244.   class _proxy_NamingContext;
  245.   class _sk_NamingContext;
  246.   class _nil_NamingContext;
  247.  
  248.   class NamingContext_Helper {
  249.     public:
  250.     static NamingContext_ptr _nil();
  251.     static CORBA::Boolean is_nil(NamingContext_ptr p);
  252.     static void release(NamingContext_ptr p);
  253.     static void duplicate(NamingContext_ptr p);
  254.     static size_t NP_alignedSize(NamingContext_ptr obj,size_t initialoffset);
  255.     static void marshalObjRef(NamingContext_ptr obj,NetBufferedStream &s);
  256.     static NamingContext_ptr unmarshalObjRef(NetBufferedStream &s);
  257.     static void marshalObjRef(NamingContext_ptr obj,MemBufferedStream &s);
  258.     static NamingContext_ptr unmarshalObjRef(MemBufferedStream &s);
  259.   };
  260.   typedef _CORBA_ObjRef_Var<NamingContext,NamingContext_Helper> NamingContext_var;
  261.  
  262. #endif
  263. #ifndef __CosNaming_NamingContext__
  264. #define __CosNaming_NamingContext__
  265.   class   NamingContext;
  266.   typedef NamingContext* NamingContext_ptr;
  267.   typedef NamingContext_ptr NamingContextRef;
  268.  
  269.   class NamingContext_Helper {
  270.     public:
  271.     static NamingContext_ptr _nil();
  272.     static CORBA::Boolean is_nil(NamingContext_ptr p);
  273.     static void release(NamingContext_ptr p);
  274.     static void duplicate(NamingContext_ptr p);
  275.     static size_t NP_alignedSize(NamingContext_ptr obj,size_t initialoffset);
  276.     static void marshalObjRef(NamingContext_ptr obj,NetBufferedStream &s);
  277.     static NamingContext_ptr unmarshalObjRef(NetBufferedStream &s);
  278.     static void marshalObjRef(NamingContext_ptr obj,MemBufferedStream &s);
  279.     static NamingContext_ptr unmarshalObjRef(MemBufferedStream &s);
  280.   };
  281.   typedef _CORBA_ObjRef_Var<NamingContext,NamingContext_Helper> NamingContext_var;
  282.  
  283. #endif
  284. #define CosNaming_NamingContext_IntfRepoID "IDL:omg.org/CosNaming/NamingContext:1.0"
  285.  
  286.   class NamingContext : public virtual omniObject, public virtual CORBA::Object {
  287.   public:
  288.  
  289.     enum NotFoundReason { missing_node, not_context, not_object };
  290.  
  291.     friend inline void operator>>= (NotFoundReason _e,NetBufferedStream &s) {
  292.       ::operator>>=((CORBA::ULong)_e,s);
  293.     }
  294.  
  295.     friend inline void operator<<= (NotFoundReason &_e,NetBufferedStream &s) {
  296.       CORBA::ULong __e;
  297.       __e <<= s;
  298.       switch (__e) {
  299.         case missing_node:
  300.         case not_context:
  301.         case not_object:
  302.           _e = (NotFoundReason) __e;
  303.           break;
  304.         default:
  305.           _CORBA_marshal_error();
  306.       }
  307.     }
  308.  
  309.     friend inline void operator>>= (NotFoundReason _e,MemBufferedStream &s) {
  310.       ::operator>>=((CORBA::ULong)_e,s);
  311.     }
  312.  
  313.     friend inline void operator<<= (NotFoundReason &_e,MemBufferedStream &s) {
  314.       CORBA::ULong __e;
  315.       __e <<= s;
  316.       switch (__e) {
  317.         case missing_node:
  318.         case not_context:
  319.         case not_object:
  320.           _e = (NotFoundReason) __e;
  321.           break;
  322.         default:
  323.           _CORBA_marshal_error();
  324.       }
  325.     }
  326.  
  327.     static const CORBA::TypeCode_ptr _tc_NotFoundReason;
  328.  
  329.     friend inline void operator<<=(CORBA::Any& _a, NotFoundReason _s) {
  330.       MemBufferedStream _0RL_mbuf;
  331.       _tc_NotFoundReason->NP_fillInit(_0RL_mbuf);
  332.       _s >>= _0RL_mbuf;
  333.       _a.NP_replaceData(_tc_NotFoundReason,_0RL_mbuf);
  334.     }
  335.  
  336.     friend CORBA::Boolean operator>>=(const CORBA::Any& _a, NotFoundReason& _s);
  337.  
  338. #define CosNaming_NamingContext_NotFound_IntfRepoID "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"
  339.  
  340.     class NotFound : public CORBA::UserException {
  341.     public:
  342.  
  343.       NotFoundReason why;
  344.       Name rest_of_name;
  345.       
  346.       NotFound() {};
  347.       NotFound(const NotFound &);
  348.       NotFound(NotFoundReason  _why, const Name _rest_of_name);
  349.       NotFound & operator=(const NotFound &);
  350.       virtual ~NotFound() {};
  351.       size_t NP_alignedSize(size_t initialoffset);
  352.       void operator>>= (NetBufferedStream &);
  353.       void operator<<= (NetBufferedStream &);
  354.       void operator>>= (MemBufferedStream &);
  355.       void operator<<= (MemBufferedStream &);
  356.     };
  357.  
  358.     static const CORBA::TypeCode_ptr _tc_NotFound;
  359.  
  360.     friend inline void operator<<=(CORBA::Any& _a, const NotFound& _s) {
  361.       MemBufferedStream _0RL_mbuf;
  362.       _tc_NotFound->NP_fillInit(_0RL_mbuf);
  363.       NotFound _0RL_s = _s;
  364.       _0RL_s >>= _0RL_mbuf;
  365.       _a.NP_replaceData(_tc_NotFound,_0RL_mbuf);
  366.     }
  367.  
  368.     friend inline void operator<<=(CORBA::Any& _a, NotFound* _sp) {
  369.       ::operator<<=(_a,*_sp);
  370.       delete _sp;
  371.     }
  372.  
  373.     friend CORBA::Boolean operator>>=(const CORBA::Any& _a, NotFound*& _sp);
  374.  
  375. #define CosNaming_NamingContext_CannotProceed_IntfRepoID "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"
  376.  
  377.     class CannotProceed : public CORBA::UserException {
  378.     public:
  379.  
  380.       _CORBA_ObjRef_Member<NamingContext,NamingContext_Helper> cxt;
  381.       Name rest_of_name;
  382.       
  383.       CannotProceed() {};
  384.       CannotProceed(const CannotProceed &);
  385.       CannotProceed(NamingContext_ptr _cxt, const Name _rest_of_name);
  386.       CannotProceed & operator=(const CannotProceed &);
  387.       virtual ~CannotProceed() {};
  388.       size_t NP_alignedSize(size_t initialoffset);
  389.       void operator>>= (NetBufferedStream &);
  390.       void operator<<= (NetBufferedStream &);
  391.       void operator>>= (MemBufferedStream &);
  392.       void operator<<= (MemBufferedStream &);
  393.     };
  394.  
  395.     static const CORBA::TypeCode_ptr _tc_CannotProceed;
  396.  
  397.     friend inline void operator<<=(CORBA::Any& _a, const CannotProceed& _s) {
  398.       MemBufferedStream _0RL_mbuf;
  399.       _tc_CannotProceed->NP_fillInit(_0RL_mbuf);
  400.       CannotProceed _0RL_s = _s;
  401.       _0RL_s >>= _0RL_mbuf;
  402.       _a.NP_replaceData(_tc_CannotProceed,_0RL_mbuf);
  403.     }
  404.  
  405.     friend inline void operator<<=(CORBA::Any& _a, CannotProceed* _sp) {
  406.       ::operator<<=(_a,*_sp);
  407.       delete _sp;
  408.     }
  409.  
  410.     friend CORBA::Boolean operator>>=(const CORBA::Any& _a, CannotProceed*& _sp);
  411.  
  412. #define CosNaming_NamingContext_InvalidName_IntfRepoID "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"
  413.  
  414.     class InvalidName : public CORBA::UserException {
  415.     public:
  416.  
  417.       
  418.       InvalidName() {};
  419.       InvalidName(const InvalidName &);
  420.       InvalidName & operator=(const InvalidName &);
  421.       virtual ~InvalidName() {};
  422.       size_t NP_alignedSize(size_t initialoffset);
  423.       void operator>>= (NetBufferedStream &);
  424.       void operator<<= (NetBufferedStream &);
  425.       void operator>>= (MemBufferedStream &);
  426.       void operator<<= (MemBufferedStream &);
  427.     };
  428.  
  429.     static const CORBA::TypeCode_ptr _tc_InvalidName;
  430.  
  431.     friend inline void operator<<=(CORBA::Any& _a, const InvalidName& _s) {
  432.       MemBufferedStream _0RL_mbuf;
  433.       _tc_InvalidName->NP_fillInit(_0RL_mbuf);
  434.       InvalidName _0RL_s = _s;
  435.       _0RL_s >>= _0RL_mbuf;
  436.       _a.NP_replaceData(_tc_InvalidName,_0RL_mbuf);
  437.     }
  438.  
  439.     friend inline void operator<<=(CORBA::Any& _a, InvalidName* _sp) {
  440.       ::operator<<=(_a,*_sp);
  441.       delete _sp;
  442.     }
  443.  
  444.     friend CORBA::Boolean operator>>=(const CORBA::Any& _a, InvalidName*& _sp);
  445.  
  446. #define CosNaming_NamingContext_AlreadyBound_IntfRepoID "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"
  447.  
  448.     class AlreadyBound : public CORBA::UserException {
  449.     public:
  450.  
  451.       
  452.       AlreadyBound() {};
  453.       AlreadyBound(const AlreadyBound &);
  454.       AlreadyBound & operator=(const AlreadyBound &);
  455.       virtual ~AlreadyBound() {};
  456.       size_t NP_alignedSize(size_t initialoffset);
  457.       void operator>>= (NetBufferedStream &);
  458.       void operator<<= (NetBufferedStream &);
  459.       void operator>>= (MemBufferedStream &);
  460.       void operator<<= (MemBufferedStream &);
  461.     };
  462.  
  463.     static const CORBA::TypeCode_ptr _tc_AlreadyBound;
  464.  
  465.     friend inline void operator<<=(CORBA::Any& _a, const AlreadyBound& _s) {
  466.       MemBufferedStream _0RL_mbuf;
  467.       _tc_AlreadyBound->NP_fillInit(_0RL_mbuf);
  468.       AlreadyBound _0RL_s = _s;
  469.       _0RL_s >>= _0RL_mbuf;
  470.       _a.NP_replaceData(_tc_AlreadyBound,_0RL_mbuf);
  471.     }
  472.  
  473.     friend inline void operator<<=(CORBA::Any& _a, AlreadyBound* _sp) {
  474.       ::operator<<=(_a,*_sp);
  475.       delete _sp;
  476.     }
  477.  
  478.     friend CORBA::Boolean operator>>=(const CORBA::Any& _a, AlreadyBound*& _sp);
  479.  
  480. #define CosNaming_NamingContext_NotEmpty_IntfRepoID "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"
  481.  
  482.     class NotEmpty : public CORBA::UserException {
  483.     public:
  484.  
  485.       
  486.       NotEmpty() {};
  487.       NotEmpty(const NotEmpty &);
  488.       NotEmpty & operator=(const NotEmpty &);
  489.       virtual ~NotEmpty() {};
  490.       size_t NP_alignedSize(size_t initialoffset);
  491.       void operator>>= (NetBufferedStream &);
  492.       void operator<<= (NetBufferedStream &);
  493.       void operator>>= (MemBufferedStream &);
  494.       void operator<<= (MemBufferedStream &);
  495.     };
  496.  
  497.     static const CORBA::TypeCode_ptr _tc_NotEmpty;
  498.  
  499.     friend inline void operator<<=(CORBA::Any& _a, const NotEmpty& _s) {
  500.       MemBufferedStream _0RL_mbuf;
  501.       _tc_NotEmpty->NP_fillInit(_0RL_mbuf);
  502.       NotEmpty _0RL_s = _s;
  503.       _0RL_s >>= _0RL_mbuf;
  504.       _a.NP_replaceData(_tc_NotEmpty,_0RL_mbuf);
  505.     }
  506.  
  507.     friend inline void operator<<=(CORBA::Any& _a, NotEmpty* _sp) {
  508.       ::operator<<=(_a,*_sp);
  509.       delete _sp;
  510.     }
  511.  
  512.     friend CORBA::Boolean operator>>=(const CORBA::Any& _a, NotEmpty*& _sp);
  513.  
  514.     virtual void bind ( const Name & n, CORBA::Object_ptr  obj ) = 0;
  515.     virtual void rebind ( const Name & n, CORBA::Object_ptr  obj ) = 0;
  516.     virtual void bind_context ( const Name & n, NamingContext_ptr  nc ) = 0;
  517.     virtual void rebind_context ( const Name & n, NamingContext_ptr  nc ) = 0;
  518.     virtual CORBA::Object_ptr  resolve ( const Name & n ) = 0;
  519.     virtual void unbind ( const Name & n ) = 0;
  520.     virtual NamingContext_ptr  new_context (  ) = 0;
  521.     virtual NamingContext_ptr  bind_new_context ( const Name & n ) = 0;
  522.     virtual void destroy (  ) = 0;
  523.     virtual void _0RL__list ( CORBA::ULong  how_many, BindingList *& bl, BindingIterator_ptr & bi ) = 0;
  524.     void list ( CORBA::ULong  how_many,
  525.                       _CORBA_Sequence_OUT_arg<BindingList,BindingList_var >  bl,
  526.                       _CORBA_ObjRef_OUT_arg<BindingIterator,BindingIterator_var,_CORBA_ObjRef_Member<BindingIterator,BindingIterator_Helper>,BindingIterator_Helper >  bi )
  527.     {
  528.       _0RL__list ( how_many, bl._data, bi._data );
  529.     }
  530.     static NamingContext_ptr _duplicate(NamingContext_ptr);
  531.     static NamingContext_ptr _narrow(CORBA::Object_ptr);
  532.     static NamingContext_ptr _nil();
  533.  
  534.     static inline size_t NP_alignedSize(NamingContext_ptr obj,size_t initialoffset) {
  535.       return CORBA::AlignedObjRef(obj,CosNaming_NamingContext_IntfRepoID,40,initialoffset);
  536.     }
  537.  
  538.     static inline void marshalObjRef(NamingContext_ptr obj,NetBufferedStream &s) {
  539.       CORBA::MarshalObjRef(obj,CosNaming_NamingContext_IntfRepoID,40,s);
  540.     }
  541.  
  542.     static inline NamingContext_ptr unmarshalObjRef(NetBufferedStream &s) {
  543.       CORBA::Object_ptr _obj = CORBA::UnMarshalObjRef(CosNaming_NamingContext_IntfRepoID,s);
  544.       NamingContext_ptr _result = CosNaming::NamingContext::_narrow(_obj);
  545.       CORBA::release(_obj);
  546.       return _result;
  547.     }
  548.  
  549.     static inline void marshalObjRef(NamingContext_ptr obj,MemBufferedStream &s) {
  550.       CORBA::MarshalObjRef(obj,CosNaming_NamingContext_IntfRepoID,40,s);
  551.     }
  552.  
  553.     static inline NamingContext_ptr unmarshalObjRef(MemBufferedStream &s) {
  554.       CORBA::Object_ptr _obj = CORBA::UnMarshalObjRef(CosNaming_NamingContext_IntfRepoID,s);
  555.       NamingContext_ptr _result = CosNaming::NamingContext::_narrow(_obj);
  556.       CORBA::release(_obj);
  557.       return _result;
  558.     }
  559.  
  560.     static CORBA::Boolean _0RL_is_a(const char *base_repoId);
  561.  
  562.   protected:
  563.  
  564.     NamingContext() {
  565.       if (!is_proxy())
  566.         omniObject::PR_IRRepositoryId(CosNaming_NamingContext_IntfRepoID);
  567.       this->PR_setobj(this);
  568.     }
  569.     virtual ~NamingContext() {}
  570.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type_id=0);
  571.  
  572.   private:
  573.  
  574.     NamingContext(const NamingContext&);
  575.     NamingContext &operator=(const NamingContext&);
  576.   };
  577.  
  578.   class _sk_NamingContext :  public virtual NamingContext {
  579.   public:
  580.  
  581.     _sk_NamingContext() {}
  582.     _sk_NamingContext(const omniORB::objectKey& k);
  583.     virtual ~_sk_NamingContext() {}
  584.     NamingContext_ptr _this() { return NamingContext::_duplicate(this); }
  585.     void _obj_is_ready(CORBA::BOA_ptr boa) { boa->obj_is_ready(this); }
  586.     CORBA::BOA_ptr _boa() { return CORBA::BOA::getBOA(); }
  587.     void _dispose() { _boa()->dispose(this); }
  588.     omniORB::objectKey _key();
  589.     virtual void bind ( const Name & n, CORBA::Object_ptr  obj ) = 0;
  590.     virtual void rebind ( const Name & n, CORBA::Object_ptr  obj ) = 0;
  591.     virtual void bind_context ( const Name & n, NamingContext_ptr  nc ) = 0;
  592.     virtual void rebind_context ( const Name & n, NamingContext_ptr  nc ) = 0;
  593.     virtual CORBA::Object_ptr  resolve ( const Name & n ) = 0;
  594.     virtual void unbind ( const Name & n ) = 0;
  595.     virtual NamingContext_ptr  new_context (  ) = 0;
  596.     virtual NamingContext_ptr  bind_new_context ( const Name & n ) = 0;
  597.     virtual void destroy (  ) = 0;
  598.     virtual void list ( CORBA::ULong  how_many, BindingList *& bl, BindingIterator_ptr & bi ) = 0;
  599.     virtual void _0RL__list ( CORBA::ULong  how_many, BindingList *& bl, BindingIterator_ptr & bi ) {
  600.       list ( how_many, bl, bi );
  601.     }
  602.     virtual CORBA::Boolean dispatch(GIOP_S &s,const char *op,CORBA::Boolean response);
  603.  
  604.   protected:
  605.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type_id) {
  606.       return NamingContext::_widenFromTheMostDerivedIntf(repoId,is_cxx_type_id);
  607.     }
  608.   private:
  609.     _sk_NamingContext (const _sk_NamingContext&);
  610.     _sk_NamingContext &operator=(const _sk_NamingContext&);
  611.   };
  612.  
  613.   class _proxy_NamingContext :  public virtual NamingContext {
  614.   public:
  615.  
  616.     _proxy_NamingContext (Rope *r,CORBA::Octet *key,size_t keysize,IOP::TaggedProfileList *profiles,CORBA::Boolean release) :
  617.       omniObject(CosNaming_NamingContext_IntfRepoID,r,key,keysize,profiles,release) {
  618.         omni::objectIsReady(this);
  619.     }
  620.     virtual ~_proxy_NamingContext() {}
  621.     virtual void bind ( const Name & n, CORBA::Object_ptr  obj );
  622.     virtual void rebind ( const Name & n, CORBA::Object_ptr  obj );
  623.     virtual void bind_context ( const Name & n, NamingContext_ptr  nc );
  624.     virtual void rebind_context ( const Name & n, NamingContext_ptr  nc );
  625.     virtual CORBA::Object_ptr  resolve ( const Name & n );
  626.     virtual void unbind ( const Name & n );
  627.     virtual NamingContext_ptr  new_context (  );
  628.     virtual NamingContext_ptr  bind_new_context ( const Name & n );
  629.     virtual void destroy (  );
  630.     virtual void _0RL__list ( CORBA::ULong  how_many, BindingList *& bl, BindingIterator_ptr & bi );
  631.  
  632.   protected:
  633.  
  634.     _proxy_NamingContext () {}
  635.  
  636.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type) {
  637.       return NamingContext::_widenFromTheMostDerivedIntf(repoId,is_cxx_type);
  638.     }
  639.   private:
  640.  
  641.     _proxy_NamingContext (const _proxy_NamingContext&);
  642.     _proxy_NamingContext &operator=(const _proxy_NamingContext&);
  643.   };
  644.  
  645.   class _nil_NamingContext :   public virtual NamingContext {
  646.   public:
  647.     _nil_NamingContext() : omniObject(omniObject::nilObjectManager()) { this->PR_setobj(0); }
  648.     virtual ~_nil_NamingContext() {}
  649.     void bind ( const Name & n, CORBA::Object_ptr  obj ){
  650.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  651. #ifdef NEED_DUMMY_RETURN
  652.       // never reach here! Dummy return to keep some compilers happy.
  653.       return;
  654. #endif
  655.     }
  656.  
  657.     void rebind ( const Name & n, CORBA::Object_ptr  obj ){
  658.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  659. #ifdef NEED_DUMMY_RETURN
  660.       // never reach here! Dummy return to keep some compilers happy.
  661.       return;
  662. #endif
  663.     }
  664.  
  665.     void bind_context ( const Name & n, NamingContext_ptr  nc ){
  666.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  667. #ifdef NEED_DUMMY_RETURN
  668.       // never reach here! Dummy return to keep some compilers happy.
  669.       return;
  670. #endif
  671.     }
  672.  
  673.     void rebind_context ( const Name & n, NamingContext_ptr  nc ){
  674.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  675. #ifdef NEED_DUMMY_RETURN
  676.       // never reach here! Dummy return to keep some compilers happy.
  677.       return;
  678. #endif
  679.     }
  680.  
  681.     CORBA::Object_ptr  resolve ( const Name & n ){
  682.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  683. #ifdef NEED_DUMMY_RETURN
  684.       // never reach here! Dummy return to keep some compilers happy.
  685.       CORBA::Object_ptr _0RL_result = 0;
  686.       return _0RL_result;
  687. #endif
  688.     }
  689.  
  690.     void unbind ( const Name & n ){
  691.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  692. #ifdef NEED_DUMMY_RETURN
  693.       // never reach here! Dummy return to keep some compilers happy.
  694.       return;
  695. #endif
  696.     }
  697.  
  698.     NamingContext_ptr  new_context (  ){
  699.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  700. #ifdef NEED_DUMMY_RETURN
  701.       // never reach here! Dummy return to keep some compilers happy.
  702.       NamingContext_ptr _0RL_result = 0;
  703.       return _0RL_result;
  704. #endif
  705.     }
  706.  
  707.     NamingContext_ptr  bind_new_context ( const Name & n ){
  708.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  709. #ifdef NEED_DUMMY_RETURN
  710.       // never reach here! Dummy return to keep some compilers happy.
  711.       NamingContext_ptr _0RL_result = 0;
  712.       return _0RL_result;
  713. #endif
  714.     }
  715.  
  716.     void destroy (  ){
  717.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  718. #ifdef NEED_DUMMY_RETURN
  719.       // never reach here! Dummy return to keep some compilers happy.
  720.       return;
  721. #endif
  722.     }
  723.  
  724.     void _0RL__list ( CORBA::ULong  how_many, BindingList *& bl, BindingIterator_ptr & bi ){
  725.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  726. #ifdef NEED_DUMMY_RETURN
  727.       // never reach here! Dummy return to keep some compilers happy.
  728.       return;
  729. #endif
  730.     }
  731.  
  732.   protected:
  733.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type_id) {
  734.       return NamingContext::_widenFromTheMostDerivedIntf(repoId,is_cxx_type_id);
  735.     }
  736.   };
  737.  
  738.   class NamingContext_proxyObjectFactory : public proxyObjectFactory {
  739.   public:
  740.     NamingContext_proxyObjectFactory () {}
  741.     virtual ~NamingContext_proxyObjectFactory () {}
  742.     virtual const char *irRepoId() const;
  743.     virtual CORBA::Object_ptr newProxyObject(Rope *r,CORBA::Octet *key,size_t keysize,IOP::TaggedProfileList *profiles,CORBA::Boolean release);
  744.     virtual CORBA::Boolean is_a(const char *base_repoId) const;
  745.     static NamingContext_ptr _nil() {
  746.       if (!__nil_NamingContext) {
  747.         __nil_NamingContext = new _nil_NamingContext;
  748.       }
  749.       return __nil_NamingContext;
  750.     }
  751.   private:
  752.     static NamingContext_ptr __nil_NamingContext;
  753.   };
  754.  
  755.   static const CORBA::TypeCode_ptr _tc_NamingContext;
  756.  
  757.   friend inline void operator<<=(CORBA::Any& _a, NamingContext_ptr _s) {
  758.     MemBufferedStream _0RL_mbuf;
  759.     _tc_NamingContext->NP_fillInit(_0RL_mbuf);
  760.     NamingContext::marshalObjRef(_s,_0RL_mbuf);
  761.     _a.NP_replaceData(_tc_NamingContext,_0RL_mbuf);
  762.   }
  763.  
  764.   friend inline void operator<<=(CORBA::Any& _a, NamingContext_ptr* _sp) {
  765.     ::operator<<=(_a,*_sp);
  766.     CORBA::release(*_sp);
  767.   }
  768.  
  769.   friend CORBA::Boolean operator>>=(const CORBA::Any& _a, NamingContext_ptr& _s);
  770.  
  771. #ifndef __CosNaming_BindingIterator__
  772. #define __CosNaming_BindingIterator__
  773.   class   BindingIterator;
  774.   typedef BindingIterator* BindingIterator_ptr;
  775.   typedef BindingIterator_ptr BindingIteratorRef;
  776.  
  777.   class BindingIterator_Helper {
  778.     public:
  779.     static BindingIterator_ptr _nil();
  780.     static CORBA::Boolean is_nil(BindingIterator_ptr p);
  781.     static void release(BindingIterator_ptr p);
  782.     static void duplicate(BindingIterator_ptr p);
  783.     static size_t NP_alignedSize(BindingIterator_ptr obj,size_t initialoffset);
  784.     static void marshalObjRef(BindingIterator_ptr obj,NetBufferedStream &s);
  785.     static BindingIterator_ptr unmarshalObjRef(NetBufferedStream &s);
  786.     static void marshalObjRef(BindingIterator_ptr obj,MemBufferedStream &s);
  787.     static BindingIterator_ptr unmarshalObjRef(MemBufferedStream &s);
  788.   };
  789.   typedef _CORBA_ObjRef_Var<BindingIterator,BindingIterator_Helper> BindingIterator_var;
  790.  
  791. #endif
  792. #define CosNaming_BindingIterator_IntfRepoID "IDL:omg.org/CosNaming/BindingIterator:1.0"
  793.  
  794.   class BindingIterator : public virtual omniObject, public virtual CORBA::Object {
  795.   public:
  796.  
  797.     virtual CORBA::Boolean  _0RL__next_one ( Binding *& b ) = 0;
  798.     CORBA::Boolean  next_one ( _CORBA_ConstrType_Variable_OUT_arg<Binding,Binding_var>  b )
  799.     {
  800.       return _0RL__next_one ( b._data );
  801.     }
  802.     virtual CORBA::Boolean  _0RL__next_n ( CORBA::ULong  how_many, BindingList *& bl ) = 0;
  803.     CORBA::Boolean  next_n ( CORBA::ULong  how_many,
  804.                                    _CORBA_Sequence_OUT_arg<BindingList,BindingList_var >  bl )
  805.     {
  806.       return _0RL__next_n ( how_many, bl._data );
  807.     }
  808.     virtual void destroy (  ) = 0;
  809.     static BindingIterator_ptr _duplicate(BindingIterator_ptr);
  810.     static BindingIterator_ptr _narrow(CORBA::Object_ptr);
  811.     static BindingIterator_ptr _nil();
  812.  
  813.     static inline size_t NP_alignedSize(BindingIterator_ptr obj,size_t initialoffset) {
  814.       return CORBA::AlignedObjRef(obj,CosNaming_BindingIterator_IntfRepoID,42,initialoffset);
  815.     }
  816.  
  817.     static inline void marshalObjRef(BindingIterator_ptr obj,NetBufferedStream &s) {
  818.       CORBA::MarshalObjRef(obj,CosNaming_BindingIterator_IntfRepoID,42,s);
  819.     }
  820.  
  821.     static inline BindingIterator_ptr unmarshalObjRef(NetBufferedStream &s) {
  822.       CORBA::Object_ptr _obj = CORBA::UnMarshalObjRef(CosNaming_BindingIterator_IntfRepoID,s);
  823.       BindingIterator_ptr _result = CosNaming::BindingIterator::_narrow(_obj);
  824.       CORBA::release(_obj);
  825.       return _result;
  826.     }
  827.  
  828.     static inline void marshalObjRef(BindingIterator_ptr obj,MemBufferedStream &s) {
  829.       CORBA::MarshalObjRef(obj,CosNaming_BindingIterator_IntfRepoID,42,s);
  830.     }
  831.  
  832.     static inline BindingIterator_ptr unmarshalObjRef(MemBufferedStream &s) {
  833.       CORBA::Object_ptr _obj = CORBA::UnMarshalObjRef(CosNaming_BindingIterator_IntfRepoID,s);
  834.       BindingIterator_ptr _result = CosNaming::BindingIterator::_narrow(_obj);
  835.       CORBA::release(_obj);
  836.       return _result;
  837.     }
  838.  
  839.     static CORBA::Boolean _0RL_is_a(const char *base_repoId);
  840.  
  841.   protected:
  842.  
  843.     BindingIterator() {
  844.       if (!is_proxy())
  845.         omniObject::PR_IRRepositoryId(CosNaming_BindingIterator_IntfRepoID);
  846.       this->PR_setobj(this);
  847.     }
  848.     virtual ~BindingIterator() {}
  849.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type_id=0);
  850.  
  851.   private:
  852.  
  853.     BindingIterator(const BindingIterator&);
  854.     BindingIterator &operator=(const BindingIterator&);
  855.   };
  856.  
  857.   class _sk_BindingIterator :  public virtual BindingIterator {
  858.   public:
  859.  
  860.     _sk_BindingIterator() {}
  861.     _sk_BindingIterator(const omniORB::objectKey& k);
  862.     virtual ~_sk_BindingIterator() {}
  863.     BindingIterator_ptr _this() { return BindingIterator::_duplicate(this); }
  864.     void _obj_is_ready(CORBA::BOA_ptr boa) { boa->obj_is_ready(this); }
  865.     CORBA::BOA_ptr _boa() { return CORBA::BOA::getBOA(); }
  866.     void _dispose() { _boa()->dispose(this); }
  867.     omniORB::objectKey _key();
  868.     virtual CORBA::Boolean  next_one ( Binding *& b ) = 0;
  869.     virtual CORBA::Boolean  _0RL__next_one ( Binding *& b ) {
  870.       return next_one ( b );
  871.     }
  872.     virtual CORBA::Boolean  next_n ( CORBA::ULong  how_many, BindingList *& bl ) = 0;
  873.     virtual CORBA::Boolean  _0RL__next_n ( CORBA::ULong  how_many, BindingList *& bl ) {
  874.       return next_n ( how_many, bl );
  875.     }
  876.     virtual void destroy (  ) = 0;
  877.     virtual CORBA::Boolean dispatch(GIOP_S &s,const char *op,CORBA::Boolean response);
  878.  
  879.   protected:
  880.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type_id) {
  881.       return BindingIterator::_widenFromTheMostDerivedIntf(repoId,is_cxx_type_id);
  882.     }
  883.   private:
  884.     _sk_BindingIterator (const _sk_BindingIterator&);
  885.     _sk_BindingIterator &operator=(const _sk_BindingIterator&);
  886.   };
  887.  
  888.   class _proxy_BindingIterator :  public virtual BindingIterator {
  889.   public:
  890.  
  891.     _proxy_BindingIterator (Rope *r,CORBA::Octet *key,size_t keysize,IOP::TaggedProfileList *profiles,CORBA::Boolean release) :
  892.       omniObject(CosNaming_BindingIterator_IntfRepoID,r,key,keysize,profiles,release) {
  893.         omni::objectIsReady(this);
  894.     }
  895.     virtual ~_proxy_BindingIterator() {}
  896.     virtual CORBA::Boolean  _0RL__next_one ( Binding *& b );
  897.     virtual CORBA::Boolean  _0RL__next_n ( CORBA::ULong  how_many, BindingList *& bl );
  898.     virtual void destroy (  );
  899.  
  900.   protected:
  901.  
  902.     _proxy_BindingIterator () {}
  903.  
  904.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type) {
  905.       return BindingIterator::_widenFromTheMostDerivedIntf(repoId,is_cxx_type);
  906.     }
  907.   private:
  908.  
  909.     _proxy_BindingIterator (const _proxy_BindingIterator&);
  910.     _proxy_BindingIterator &operator=(const _proxy_BindingIterator&);
  911.   };
  912.  
  913.   class _nil_BindingIterator :   public virtual BindingIterator {
  914.   public:
  915.     _nil_BindingIterator() : omniObject(omniObject::nilObjectManager()) { this->PR_setobj(0); }
  916.     virtual ~_nil_BindingIterator() {}
  917.     CORBA::Boolean  _0RL__next_one ( Binding *& b ){
  918.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  919. #ifdef NEED_DUMMY_RETURN
  920.       // never reach here! Dummy return to keep some compilers happy.
  921.       CORBA::Boolean _0RL_result = 0;
  922.       return _0RL_result;
  923. #endif
  924.     }
  925.  
  926.     CORBA::Boolean  _0RL__next_n ( CORBA::ULong  how_many, BindingList *& bl ){
  927.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  928. #ifdef NEED_DUMMY_RETURN
  929.       // never reach here! Dummy return to keep some compilers happy.
  930.       CORBA::Boolean _0RL_result = 0;
  931.       return _0RL_result;
  932. #endif
  933.     }
  934.  
  935.     void destroy (  ){
  936.       throw CORBA::BAD_OPERATION(0,CORBA::COMPLETED_NO);
  937. #ifdef NEED_DUMMY_RETURN
  938.       // never reach here! Dummy return to keep some compilers happy.
  939.       return;
  940. #endif
  941.     }
  942.  
  943.   protected:
  944.     virtual void *_widenFromTheMostDerivedIntf(const char *repoId,CORBA::Boolean is_cxx_type_id) {
  945.       return BindingIterator::_widenFromTheMostDerivedIntf(repoId,is_cxx_type_id);
  946.     }
  947.   };
  948.  
  949.   class BindingIterator_proxyObjectFactory : public proxyObjectFactory {
  950.   public:
  951.     BindingIterator_proxyObjectFactory () {}
  952.     virtual ~BindingIterator_proxyObjectFactory () {}
  953.     virtual const char *irRepoId() const;
  954.     virtual CORBA::Object_ptr newProxyObject(Rope *r,CORBA::Octet *key,size_t keysize,IOP::TaggedProfileList *profiles,CORBA::Boolean release);
  955.     virtual CORBA::Boolean is_a(const char *base_repoId) const;
  956.     static BindingIterator_ptr _nil() {
  957.       if (!__nil_BindingIterator) {
  958.         __nil_BindingIterator = new _nil_BindingIterator;
  959.       }
  960.       return __nil_BindingIterator;
  961.     }
  962.   private:
  963.     static BindingIterator_ptr __nil_BindingIterator;
  964.   };
  965.  
  966.   static const CORBA::TypeCode_ptr _tc_BindingIterator;
  967.  
  968.   friend inline void operator<<=(CORBA::Any& _a, BindingIterator_ptr _s) {
  969.     MemBufferedStream _0RL_mbuf;
  970.     _tc_BindingIterator->NP_fillInit(_0RL_mbuf);
  971.     BindingIterator::marshalObjRef(_s,_0RL_mbuf);
  972.     _a.NP_replaceData(_tc_BindingIterator,_0RL_mbuf);
  973.   }
  974.  
  975.   friend inline void operator<<=(CORBA::Any& _a, BindingIterator_ptr* _sp) {
  976.     ::operator<<=(_a,*_sp);
  977.     CORBA::release(*_sp);
  978.   }
  979.  
  980.   friend CORBA::Boolean operator>>=(const CORBA::Any& _a, BindingIterator_ptr& _s);
  981.  
  982. };
  983.  
  984. #endif // __Naming_hh__
  985.